# Author:xinxin

stu_id=[10086,10016,10010,10020,10086]

#copy()很重要
#赋值(=)=copy? 不等价
#stu_id_matedate=stu_id
#print("stu_id:",stu_id,'\n','stu_id_matedata:',stu_id_matedata)

#实验一：赋值
# stu_id.pop(1)
# print("stu_id:",stu_id,'\n','stu_id_matedata:',stu_id_matedata)

# 实验二： copy()
# stu_id_matedata = stu_id.copy()
# stu_id.pop(1)
# print("stu_id:",stu_id,'\n','stu_id_matedata:',stu_id_matedata)

# 实验三： 切片实现复制
stu_id_matedata = stu_id[:]
stu_id.pop(1)
print("stu_id:",stu_id,'\n','stu_id_matedata:',stu_id_matedata)
print("-------------------------")
